home *** CD-ROM | disk | FTP | other *** search
/ A.C.E. 2 / ACE CD 2.iso / FILES / UTILS / HSBASIC2.DMS / in.adf / HB2Examples2.1.Lha / Examples / StrHooks / ReadMe < prev    next >
Encoding:
Text File  |  1994-04-14  |  887 b   |  22 lines

  1. StrHooks.bas - String gadget hook demo
  2. ======================================
  3.  
  4. Derived from RKM example (c) Copyright 1992 Commodore-Amiga, Inc.
  5.  
  6. This is a straightforward translation of the Commodore "Example String Gadget
  7. Editing Hook" taken from the Libraries RKM p.162.
  8.  
  9. The example shows simple use of string editing hooks to implement a string
  10. gadget which will only accept hex digits; locale.library is used to provide
  11. the character detection and casing functions.
  12.  
  13. The example will work on versions of Workbench 2.1 or later (V38 and above).
  14.  
  15. Compiling
  16. ---------
  17. Load the StrHooks_inc.bh file and Tokenise it (Program-Tokenise), making
  18. sure you have no token file selected in the File Options (Settings-Compiler-
  19. Files). Once you have your token file, set the File Options-Token File setting
  20. to the StrHooks_inc.t file just created. Load the StrHooks.bas file,
  21. compile & run it.
  22.